﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using CE.Global;

public partial class news_news_th : MyLanguageBasePage
{
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Page.Title = Resources.Title.NewsTitle;

        LiteralControl newln = new LiteralControl(Environment.NewLine);
        HtmlMeta language = new HtmlMeta();
        language.Name = "language";
        language.Content = Resources.Title.PageLanguage;

        HtmlMeta keywords = new HtmlMeta();
        keywords.Name = "keywords";
        keywords.Content = Resources.Title.NewsKeyword;

        HtmlMeta description = new HtmlMeta();
        description.Name = "description";
        description.Content = Resources.Title.NewsDescription;

        Page.Header.Controls.AddAt(10, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(11, language);
        Page.Header.Controls.AddAt(12, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(13, keywords);
        Page.Header.Controls.AddAt(14, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(15, description);
        if (!IsPostBack)
        {
            hplRevolutionizes.NavigateUrl = CE.Global.General.GetUrl("/news/revolutionizes-car-insurance", Page);
            hplComparisonSites.NavigateUrl = CE.Global.General.GetUrl("/news/comparison-sites-starting-waves-asia", Page);
            hplMotorInsurance.NavigateUrl = CE.Global.General.GetUrl("/news/motor-insurance-compulsory", Page);
            hplBuyCheaper.NavigateUrl = CE.Global.General.GetUrl("/news/buying-cheap-car-insurance", Page);
        }
    }
}
